﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Web-Forms/Master.master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="aspnetprovider.Web_Forms.Login" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
    $(document).ready(function () {
        
    });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="BodyContent" runat="server">
    <div style="height: 100%;">
        <div id="login-content">
            <h3>
                Zylog Systems Limited..!</h3>
        </div>
        <div id="login-table" style="float: right; margin-top: 15%; margin-right: 5%;" title="Login here">
            <asp:LoginView ID="LoginView1" runat="server">
                <AnonymousTemplate>
                    <asp:Login ID="Login1" runat="server" HelpPageText="Help" DestinationPageUrl="~/Web-Forms/Members/Default.aspx"
                        FailureText="Login Failure..!" TitleText="Please Login here..!">
                        <LayoutTemplate>
                            <div id="login-control">
                                <div class="form-row">
                                    <div class="form-label">
                                        <asp:Label AssociatedControlID="UserName" CssClass="labels" ID="UserNameLabel" runat="server"
                                            Text="Username:"></asp:Label>
                                    </div>
                                    <div class="form-control">
                                        <asp:TextBox ID="UserName" CssClass="text-box" runat="server"></asp:TextBox>
                                        <div class="form-validator">
                                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                                CssClass="form-validator" ErrorMessage="Username is required." ForeColor="Red"
                                                ToolTip="Username is required." ValidationGroup="ctl00$Login1" Display="Dynamic"></asp:RequiredFieldValidator></div>
                                    </div>
                                </div>
                                <div class="form-row">
                                    <div class="form-label">
                                        <asp:Label AssociatedControlID="Password" CssClass="labels" ID="PasswordLabel" runat="server"
                                            Text="Password:"></asp:Label>
                                    </div>
                                    <div class="form-control">
                                        <asp:TextBox ID="Password" CssClass="text-box" runat="server" TextMode="Password"></asp:TextBox>
                                        <div class="form-validator">
                                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                CssClass="form-validator" ErrorMessage="Password is required." ForeColor="Red"
                                                ToolTip="Password is required." ValidationGroup="ctl00$Login1" Display="Dynamic"></asp:RequiredFieldValidator></div>
                                    </div>
                                </div>
                                <div class="form-row">
                                    <div class="form-control">
                                        <div id="remChk">
                                            <asp:CheckBox ID="RememberMe" runat="server" Text="Remember me next time." />
                                        </div>
                                    </div>
                                </div>
                                <div class="form-row">
                                    <div class="form-control">
                                        <div style="text-align: right;">
                                            <asp:Button ID="Register" runat="server" CommandName="Register" CssClass="form-button"
                                                Text="Register" CausesValidation="false" UseSubmitBehavior="false" />
                                            <asp:Button ID="LoginButton" runat="server" CommandName="Login" CssClass="form-button"
                                                Text="SignIn" ValidationGroup="ctl00$Login1" />
                                        </div>
                                    </div>
                                </div>
                                <div class="form-row">
                                    <div class="form-control" id="errorMsg">
                                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                    </div>
                                </div>
                            </div>
                        </LayoutTemplate>
                    </asp:Login>
                </AnonymousTemplate>
                <LoggedInTemplate>
                    <% Response.Redirect("~/Web-Forms/Members/Default.aspx"); %>
                </LoggedInTemplate>
            </asp:LoginView>           
        </div>
    </div>
</asp:Content>
